package com.itheima.oop.d1_quickstart;

public class Student {
    String name;
    double chinese;
    double math;

    public void printTotalScore() {
        System.out.println(name +"语文成绩和数学成绩的的总分数为：" + (chinese + math) );
//        System.out.println(name + "数学成绩的分数为：" + math );
    }
    public void printAverageScore() {
        System.out.println(name + "平均分为" + (chinese + math) / 2);
    }
}

